﻿/**
 * HiScoresScreen.cs - High scores displaying screen
 * 
 * Part of BoulderDAM - A BoulderDash clone using C# and SDL
 * Nacho Cabanes & students of DAM IES San Vicente, 2014
 * 
 * Revisions
 * #     Date         Creator, changes
 * ----  -----------  -------------------------------------------------------
 * 0.03  03-apr-2014  Nacho Cabanes: Empty skeleton
 * 0.04  07-apr-2014  Alex López, Álvaro Gironés, Saúl Sánchez: Show initial data.
 */

namespace Boulder
{
    class HiScoresScreen
    {
        private Font font18;

        public HiScoresScreen()
        {
            font18 = new Font("data/Joystix.ttf", 18);
        }


        public void Run()
        {
            do
            {
                //HEADER
                Hardware.ClearScreen();
                Hardware.WriteHiddenText("TOP TEN - BOULDER",
                    350, 100,
                    0x08, 0x6D, 0x08,
                    font18);

                //RECORDS

                Hardware.WriteHiddenText("TOP TEN - BOULDER",
                    350, 100,
                    0x08, 0x6D, 0x08,
                    font18);

                //FOOTER
                Hardware.WriteHiddenText("Hit ESC to return",
                    370, 640,
                    0x99, 0x99, 0x99,
                    font18);
                Hardware.ShowHiddenScreen();

                Hardware.Pause(50);
            }
            while (!Hardware.KeyPressed(Hardware.KEY_ESC));
        }
    }
}